<g:select
  onchange="${remoteFunction(action:'details',update:'details', params:'\'stock=\'+this.value')}"
  name="stock"
  noSelection="${['null':'Select a stock']}"
  from="${stocks}"
  optionKey="id" />

